package net.diaowen.dwsurvey.service;

import java.util.List;
import java.util.Map;

import net.diaowen.common.base.entity.User;
import net.diaowen.common.plugs.page.Page;
import net.diaowen.common.service.BaseService;

public interface UserManager extends BaseService<User, String>{

	public void adminSave(User entity, String[] userRoleIds) throws Exception;
	
	public void adminSaveWithOrgId(User entity, String orgId) throws Exception;

	public Page<User> findPage(Page<User> page, User entity);

	public void disUser(String id);

	public User findNameUn(String id, String loginName);

	public User findEmailUn(String id, String email);

	public User findByCode(String code);

	public User findByActivationCode(String code);

	public void resetUserGroup(String groupId);

	public Page<User> findPageByKeyword(Page<User> page, String keyword);
	
	public Map<String,Object> doBatchImport(String path);

	public User findLoginName(String loginName);

	public User findOrgStudentId(String orgId,String Studentid);

	public Page<User> findPage(Page<User> page, User entity, String groupId);

	public Page<User> findUserSelectPage(Page<User> page, User entity, String groupId);

	public List<User> findUserByOrgId(String orgId);

	public List<User> selectorgid(String id) throws Exception;

	public int deleteuser(String email,String name) throws Exception;

}
